package com.itheima.Demo;

import java.io.*;

public class Demo字符缓冲输入流特有方法 {
    public static void main(String[] args) throws IOException {
        //创建对象
        //BufferedReader br = new BufferedReader(new FileReader("Day17codes\\aaa\\123.txt"));
        ////一次读取一行内容
        ////readLine()必须看到换行符号/文件末尾才会结束
        ////String s = br.readLine();
        ////System.out.println(s);
        //String i;
        //while ((i = br.readLine()) != null) {
        //    System.out.println(i);
        //}
        //字符缓冲输出流特有方法
        //创建对象;
        BufferedWriter bw = new BufferedWriter(new FileWriter("Day17codes\\\\aaa\\\\123.txt"));
        //输出字符
        bw.write("我爱你");
        bw.newLine();//这是一个换行
        bw.write("你却爱着一个傻逼");
        bw.newLine();
        bw.close();


    }
}
